import { useSuggestionStore } from '@renderer/stores'
import { ResultList } from './List'
import { Suggestion } from './Suggestion'

export function Result () {
  const showSuggestion = useSuggestionStore(i => i.showSuggestion)

  return (
    <main className="result-container">
      {
        showSuggestion
          ? <Suggestion />
          : <ResultList />
      }
    </main>
  )
}
